Play Music (with Timer)
(12 actions, 9 KB)
0 Get Dictionary from
[Shortcut Input]
➔ inputDict
»
1
2
4
6
1 Run Shortcut
[0 inputDict
.musicShortcutName
]
Workflow
:
[0 inputDict
.musicShortcutName
]
2 Get Dictionary Value for
setTimer
in
[0 inputDict]
➔ setTimer
»
3 If
[2 setTimer
as Boolean
]
is true
4 Get Text from
[0 inputDict
.howLong
]
»
5 If
[4 Text
as Boolean
]
is true
6 Get Numbers from
[0 inputDict
.howLong
]
7 Otherwise
8 Number
15
9 End If »
10 Run Shortcut
Audio Timer
Input
:
[9 If Result]
Workflow
:
{ "workflowIdentifier": "F4491D4E-B909-4C62-B2DB-6860423316D5", "workflowName": "Audio Timer", "isSelf": false }
11 End If ▵
3